
#include <baseeditor.h>
#include <stdio.h>

BaseEditorWidget::BaseEditorWidget (QWidget* parent)
  : QWidget (parent)
  , _name ("")
  , _dirty (false)
{
}

void BaseEditorWidget::SetName (const QString& name)
{
  if (_name != name)
    {
      _name = name;
      emit NameChanged (name);
    }
}

const QString& BaseEditorWidget::GetName () const
{
  return _name;
}

void BaseEditorWidget::SetDirty (bool dirty)
{
  if (_dirty != dirty)
    {
      _dirty = dirty;
      emit DirtyChanged (dirty);
    }
}

bool BaseEditorWidget::IsDirty () const
{
  return _dirty;
}

void BaseEditorWidget::Save ()
{
}

void BaseEditorWidget::Compile ()
{
}

void* BaseEditorWidget::GetData ()
{
  return 0;
}

QString BaseEditorWidget::GetTypeName ()
{
  return "Undefined";
}

QString BaseEditorWidget::GetUnsaveMessage ()
{
  return "Undefined";
}
